<?php
declare(strict_types=1);

namespace App\Resource\Group\Gift;


use App\Resource\Group\Gift\UserResource;
use Illuminate\Http\Resources\Json\JsonResource;

class Resource extends JsonResource
{
    public function toArray($request)
    {
        return [
            "gift" => GiftResource::collection($this->gifts),
            "user" => UserResource::make($this->user),
            "target" => UserResource::make($this->target),
        ];
    }
}